package Chapter2.Comparing.c5;

public class Test {
    /*public static void main(String[] args) {
        char[] charArray = {'*', '7', 'b', ' ', 'A'};
        for (int i = 0; i < charArray.length; i++) {
            if (Character.isDigit(charArray[i])) {
                System.out.println(charArray[i] + "是一个数字。");
            }
            if (Character.isLetter(charArray[i])) {
                System.out.println(charArray[i] + "是一个字母。");
            }
            if (Character.isWhitespace(charArray[i])) {
                System.out.println(charArray[i] + "是一个空格。");
            }
            if (Character.isLowerCase(charArray[i])) {
                System.out.println(charArray[i] + "是小写形式。");
            }
            if (Character.isUpperCase(charArray[i])) {
                System.out.println(charArray[i] + "是大写形式。");
            }
        }
    }*/
    //---------------------------------------------
    /*public static void main(String[] args) {
        int[]a = {1,2,3,4};
        int[]b = new int[5];
        System.arraycopy(a,0,b,0,4);
        for (int i=0;i <b.length;i++){
            System.out.println(b[i]);
        }
    //-------------------------------------------------
    }*/
    public static void main(String[] args) {
        long l = System. currentTimeMillis();
        //System.out.println(l);

        long start = System. currentTimeMillis();
        for(int i = 0;i < 100000;i++){
            int a = 0;
            System.out.print("1");
        }
        long end = System. currentTimeMillis();
        long time = end - start;
        System.out.println("\n"+start);
        System.out.println(end);
        System.out.println(time);

        System.out.println(System.getProperty("java.version"));
        System.out.println(System.getProperty("java.home"));
        System.out.println(System.getProperty("os.name"));
        System.out.println(System.getProperty("os.version"));
        System.out.println(System.getProperty("user.name"));
        System.out.println(System.getProperty("user.home"));
        System.out.println(System.getProperty("user.dir"));


    }
}
